<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="../link/css#">
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        li {
            list-style-type: none;
        }

        a {
            /*去下滑线*/
            text-decoration: none;
        }
        .parent {

            width: 400px;
            height: 400px;
            background-color: hotpink;
        }

        .damao {

            /*浮动的元素不占"位置"  确会影响内容  浮动的元素 既占位置又不占位置 */
            float: left;
            width: 100px;
            height: 100px;
            background-color: #1c036c;
        }

        .ermao {
            /*大毛浮动了   二毛的内容  还是受到大毛位置的影响*/
            width: 200px;
            height: 200px;
            background-color: #00a4ff;
        }

    </style>

</head>
<body>

<div class="parent">
    <div class="damao">123</div>
    <div class="ermao">345</div>

</div>

<script src="../link/js#" type="text/javascript"></script>
</body>
</html>